home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / PrintingMessages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-29  |  37.7 KB  |  1,072 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2.  
  3.     FILENAME
  4.         PrintingMessages.h
  5.  
  6.     DESCRIPTION
  7.         This file defines all the universal printing messages,
  8.         and Printing Manager API functions callable only from
  9.         within a message override.
  10.  
  11.     COPYRIGHT
  12.         Copyright © Apple Computer, Inc. 1989-1993
  13.         All rights reserved. 
  14.     
  15. ------------------------------------------------------------------------------- */
  16.  
  17.  
  18. #ifndef __PRINTINGMESSAGES__
  19. #define __PRINTINGMESSAGES__
  20.  
  21.  
  22. #ifndef __PRINTINGMANAGER__
  23.     #include <PrintingManager.h>
  24. #endif
  25.  
  26. #ifndef __PRINTINGRESTYPES__
  27.     #include <PrintingResTypes.h>
  28. #endif
  29.  
  30. #ifndef __MESSAGEMANAGER__
  31.     #include <Messages.h>
  32. #endif
  33.  
  34. #ifndef __MENUS__
  35.     #include <Menus.h>
  36. #endif
  37.  
  38. #ifndef __LISTS__
  39.     #include <Lists.h>
  40. #endif
  41.  
  42. #ifndef __DIALOGS__
  43.     #include <Dialogs.h>
  44. #endif
  45.  
  46.  
  47. /* ------------------------------------------------------------------------------
  48.  
  49.                                     Constants and Types
  50.  
  51. -------------------------------------------------------------------------------- */
  52.  
  53.  
  54.  
  55. /*--------------------------*/
  56. /* abstract data types...   */
  57. /*--------------------------*/
  58.  
  59.  
  60.  
  61. typedef struct gxPrivateFileRecord *gxSpoolFile;
  62.  
  63.  
  64.  
  65. /*---------------------------------------*/
  66. /* dialog panel constants and types...   */
  67. /*---------------------------------------*/
  68.  
  69.  
  70.  
  71. typedef long gxPanelEvent;
  72.  
  73. enum  {                                                    // dialog panel events
  74.     gxPanelNoEvt                     = (gxPanelEvent) 0,
  75.     gxPanelOpenEvt                 = (gxPanelEvent) 1,            // initialize and draw
  76.     gxPanelCloseEvt                 = (gxPanelEvent) 2,            // your panel is going away ( panel switch, confirm or cancel )
  77.     gxPanelHitEvt                    = (gxPanelEvent) 3,            // there's a hit in your panel
  78.     gxPanelActivateEvt            = (gxPanelEvent) 4,            // the dialog window has just been activated
  79.     gxPanelDeactivateEvt         = (gxPanelEvent) 5,            // the dialog window is about to be deactivated
  80.     gxPanelIconFocusEvt             = (gxPanelEvent) 6,            // the focus changes from the panel to the icon list
  81.     gxPanelPanelFocusEvt         = (gxPanelEvent) 7,            // the focus changes from the icon list to the panel
  82.     gxPanelFilterEvt                = (gxPanelEvent) 8,            // this is called to filter every event
  83.     gxPanelCancelEvt                = (gxPanelEvent) 9,            // the user has cancelled the dialog
  84.     gxPanelConfirmEvt                = (gxPanelEvent) 10,            // the user has confirmed the dialog
  85.     gxPanelDialogEvt                = (gxPanelEvent) 11,            // event to be handle by dialoghandler ( you get to see all events )
  86.     gxPanelOtherEvt                = (gxPanelEvent) 12,            // osEvts, etc.
  87.     gxPanelUserWillConfirmEvt    = (gxPanelEvent) 13            // user has selected confirm, time to parse panel interdependencies
  88. };
  89.  
  90.  
  91. typedef long gxPanelResult;
  92.  
  93. enum {                                        // possible panel responses to dialog handler calls
  94.     gxPanelNoResult                 = 0,
  95.     gxPanelCancelConfirmation     = 1        // only valid from panelUserWillConfirmEvt - used to keep the dialog from going away
  96. };
  97.  
  98.  
  99. enum {                                        // values for the evtAction field in PanelInfoRecord
  100.     gxOtherAction                 = 0,                // current item will not change
  101.     gxClosePanelAction        = 1,                // panel will be closed
  102.     gxCancelDialogAction        = 2,                // dialog will be cancelled
  103.     gxConfirmDialogAction    = 3                // dialog will be confirmed
  104. };
  105.  
  106.  
  107. struct gxPanelInfoRecord{                            // for FilterPanelEvent and HandlePanelEvent messages
  108.     gxPanelEvent     panelEvt;                    // why we're calling
  109.     short             panelResId;                    // 'ppnl' resource id of current panel
  110.     DialogPtr         pDlg;                            // pointer to dialog
  111.     EventRecord     *theEvent;                    // pointer to event
  112.     short             itemHit;                        // actual item number as dialog mgr thinks
  113.     short             itemCount;                    // number of items before your items
  114.     short                evtAction;                    // once this event is processed, the action that will result
  115.                                                             // (only meaningful in filtering, used for parsing)
  116.     short                errorStringId;                // STR id of string to put in error alert (0 means no string)
  117.     gxFormat            theFormat;                    // the current format (only meaningful in a format dialog)
  118.     void                *refCon;                        // refCon passed in PanelSetupRecord
  119. };
  120.  
  121. typedef struct gxPanelInfoRecord gxPanelInfoRecord;
  122.                     
  123.  
  124. typedef long gxPrintingPanelKind;
  125.  
  126. enum {
  127.     gxApplicationPanel     = (gxPrintingPanelKind) 0,
  128.     gxExtensionPanel        = (gxPrintingPanelKind) 1,
  129.     gxDriverPanel            = (gxPrintingPanelKind) 2
  130. };
  131.     
  132.  
  133. // The gxPanelSetupInfo structure is passed to the dialog handler when the client calls
  134. // to setup panels for the dialog
  135.  
  136.  
  137. struct gxPanelSetupRecord{
  138.     gxPrintingPanelKind        panelKind;
  139.     short                         panelResId;
  140.     short                         resourceRefNum;
  141.     void                            *refCon;
  142. };
  143.  
  144. typedef struct gxPanelSetupRecord gxPanelSetupRecord;
  145.  
  146.  
  147. typedef long gxParsePageRangeResult;        // returned by gxParsePageRange message
  148.  
  149. enum {
  150.     gxRangeNotParsed        = (gxParsePageRangeResult) 0,        // default initial value
  151.     gxRangeParsed            = (gxParsePageRangeResult) 1,
  152.     gxRangeBadFromValue    = (gxParsePageRangeResult) 2,
  153.     gxRangeBadToValue        = (gxParsePageRangeResult) 3
  154. };
  155.  
  156.  
  157.  
  158. /*----------------------------------------*/
  159. /* status-related constants and types...  */
  160. /*----------------------------------------*/
  161.  
  162.  
  163.  
  164. // status type ids
  165.  
  166.  
  167. enum {
  168.     gxNonFatalError = 1,                // effects icon on spooling dialog
  169.     gxFatalError = 2,                    // sends up printing alert on spooling dialog
  170.     gxPrinterReady = 3,                // signals PFE to leave alert mode
  171.     gxUserAttention = 4,                // signals initiation of a modal alert
  172.     gxUserAlert = 5,                    // signals initiation of a moveable modal alert
  173.     gxPageTransmission = 6,            // signals page sent to printer, increments page count in strings to user
  174.     gxOpenConnectionStatus = 7,    // signals PFE to begin animation on printer icon
  175.     gxInformationalStatus = 8,        // default status type, no side effects
  176.     gxSpoolingPageStatus = 9,        // signals page spooled, increments page count in spooling dialog
  177.     gxEndStatus = 10,                    // signals end of spooling
  178.     gxPercentageStatus = 11            // signals the PFE as to the amount of the job which is currently complete
  179. };
  180.  
  181.  
  182. struct gxStatusRecord{                            // for status messages
  183.     unsigned short        statusType;            // one of the ids listed above ( nonFatalError, etc. )
  184.     unsigned short        statusId;            // specific status ( out of paper, etc. ) - To be defined
  185.     unsigned short        statusAlertId;        //    printing alert id (if any) for status
  186.     Signature            statusOwner;        // creator type of status owner
  187.     short                    statResId;            // id for 'stat' resource
  188.     short                    statResIndex;        // index into 'stat' resource for this status
  189.     short                    dialogResult;        // id of button string selected on dismissal of printing alert
  190.     unsigned short        bufferLen;            // number of bytes in status buffer - total record size must be <= 512
  191.     char                    statusBuffer[1];    // user response from alert
  192. };
  193.  
  194. typedef struct gxStatusRecord gxStatusRecord;
  195.  
  196.  
  197.  
  198.  
  199. struct gxDisplayRecord{                            // for WriteStatusToDTPWindow message
  200.     Boolean            useText;
  201.     Handle            hPicture;
  202.     Str255            theText;
  203. };
  204.  
  205. typedef struct gxDisplayRecord gxDisplayRecord;
  206.  
  207.  
  208.  
  209. /*-----------------------------------------------*/
  210. /* paper mapping-related constants and types...  */
  211. /*-----------------------------------------------*/
  212.  
  213.  
  214. typedef long gxTrayMapping;
  215.  
  216. enum {
  217.     gxDefaultTrayMapping        = (gxTrayMapping) 0,
  218.     gxConfiguredTrayMapping    = (gxTrayMapping) 1
  219. };
  220.  
  221.  
  222.  
  223. /* ------------------------------------------------------------------------------
  224.  
  225.                 API Functions callable only from within message overrides
  226.  
  227. -------------------------------------------------------------------------------- */
  228.  
  229.  
  230.  
  231. #define GXPROTECTEDAPIGLUE(selector) {0x203C, 0x0001, selector, 0xABFE}
  232.  
  233. #define GXPRINTINGDISPATCH(segID, selector) {0x203C, 0x0001, 0, 0x223C, (segID & 0x0FFF), selector << 2, 0xABFE}
  234.  
  235.  
  236. #ifdef __cplusplus
  237. extern "C" {
  238. #endif
  239.  
  240. #pragma push
  241. #pragma skipping on
  242. #ifndef __powerc
  243. #ifdef applec
  244.  
  245.     #pragma parameter __D0 GXPrintingDispatch(__D1)
  246.     OSErr GXPrintingDispatch (long selector, ...)
  247.         = GXPROTECTEDAPIGLUE(0);
  248.  
  249. #else
  250.  
  251.     OSErr GXPrintingDispatch (long selector, ...)
  252.         = {0x221F, 0x203C, 0x0001, 0x0000, 0xABFE, 0x598F};
  253.  
  254. #endif
  255. #endif
  256. #pragma pop
  257.  
  258. /*
  259.     How to use the GXPRINTINGDISPATCH macro...
  260.     
  261.     If your driver or extension is large, you may want to segment it
  262.     across smaller boundaries than is permitted by the messaging system.
  263.     Without using the Printing Manager's segmentation manager directly,
  264.     the smallest segment you can create consists of the code to override
  265.     a single message.  If you are overriding workhorse messages such as
  266.     RenderPage, you may want to divide up the work among many functions
  267.     distributed across several segments.  Here's how...
  268.     
  269.     The Printing Manager segment scheme involves the construction of a
  270.     single 32-bit dispatch selector, which contains all the information
  271.     necessary for the dispatcher to find a single routine.  It contains the
  272.     segment's resource ID, and the offset within the segment which contains
  273.     the start of the routine.  The GXPRINTINGDISPATCH macro will construct the
  274.     dispatch selector for you, as well as the code to do the dispatch.
  275.     
  276.     Usually, it is convenient to start your segment with a long aligned jump table,
  277.     beginning after the 4 byte header required by the Printing Manager.  The
  278.     macro assumes this is the case and takes a 1-based routine selector from
  279.     which it conmstructs the offset.
  280.     
  281.     For example, if your code is in resource 'pdvr' (print driver), ID=2
  282.     at offset=12 (third routine in segment), you would declare your
  283.     routine as follows:
  284.     
  285.     OSErr MyRenderingRoutine (long param1, Ptr param2)
  286.         = GXPRINTINGDISPATCH(2, 3);
  287.         
  288.     Remember, ALL segment dispatches must return OSErr.  If your routine
  289.     does not generate errors, you must still declare it to return OSErr
  290.     and have the routine itself return noErr.
  291.     
  292.     An alternative way to call across segments is to call the GXPrintingDispatch
  293.     function directly.  You must construct the 32-bit selector yourself and pass
  294.     it as the first parameter.  This is usually not preferable since you don't get
  295.     type-checking unless you declare a prototype as shown above, and your code
  296.     isn't as easy to read.
  297.     
  298.     So given the above prototype, there are two ways to call the function:
  299.     
  300.         anErr = MyRenderingRoutine(p1, p2);            // free type checking!
  301.         
  302.     or:
  303.     
  304.         #define kMyRenderRoutineSelector 0x0002000C
  305.         anErr = GXPrintingDispatch(kMyRenderRoutineSelector, p1, p2);        // no type-checking!
  306.     
  307.     
  308.     Both have the same effect.
  309. */
  310.  
  311.  
  312. gxJob GXGetJob (void)
  313.     = GXPROTECTEDAPIGLUE(1);
  314.  
  315. short GXGetMessageHandlerResFile (void)
  316.     = GXPROTECTEDAPIGLUE(2);
  317.     
  318. Boolean GXSpoolingAborted (void)
  319.     = GXPROTECTEDAPIGLUE(3);
  320.     
  321. OSErr GXJobIdle (void)
  322.     = GXPROTECTEDAPIGLUE(4);
  323.  
  324. #ifdef applec
  325. OSErr GXReportStatus (short statusID, unsigned short statusIndex)
  326.     = GXPROTECTEDAPIGLUE(5);
  327. #else
  328. OSErr GXReportStatus (long statusID, unsigned long statusIndex)
  329.     = GXPROTECTEDAPIGLUE(5);
  330. #endif
  331.  
  332. OSErr GXAlertTheUser (gxStatusRecord *)
  333.     = GXPROTECTEDAPIGLUE(6);
  334.  
  335. OSErr GXSetupDialogPanel (gxPanelSetupRecord *)
  336.     = GXPROTECTEDAPIGLUE(7);
  337.  
  338. OSErr GXCountTrays (gxTrayIndex *numTrays)
  339.     = GXPROTECTEDAPIGLUE(8);
  340.     
  341. OSErr GXGetTrayName (gxTrayIndex trayNumber, Str31 trayName)
  342.     = GXPROTECTEDAPIGLUE(9);
  343.  
  344. OSErr GXSetTrayPaperType (gxTrayIndex whichTray, gxPaperType)
  345.     = GXPROTECTEDAPIGLUE(10);
  346.  
  347. OSErr GXGetTrayPaperType (gxTrayIndex whichTray, gxPaperType)
  348.     = GXPROTECTEDAPIGLUE(11);
  349.  
  350. OSErr GXGetTrayMapping (gxTrayMapping *trayMapping)
  351.     = GXPROTECTEDAPIGLUE(12);
  352.  
  353. void GXCleanupStartJob (void)
  354.     = GXPROTECTEDAPIGLUE(13);
  355.  
  356. void GXCleanupStartPage (void)
  357.     = GXPROTECTEDAPIGLUE(14);
  358.  
  359. void GXCleanupOpenConnection (void)
  360.     = GXPROTECTEDAPIGLUE(15);
  361.  
  362. void GXCleanupStartSendPage (void)
  363.     = GXPROTECTEDAPIGLUE(16);
  364.  
  365.  
  366.  
  367. /* ------------------------------------------------------------------------------
  368.  
  369.                     Constants and types for Universal Printing Messages
  370.  
  371. -------------------------------------------------------------------------------- */
  372.  
  373.  
  374.  
  375. enum {                                            // options for gxCreateSpoolFile message
  376.     gxNoCreateOptions    = 0x00000000,        // just create the file
  377.     gxInhibitAlias        = 0x00000001,        // do not create an alias in the PMD folder
  378.     gxInhibitUniqueName    = 0x00000002,    // do not append to the filename to make it unique
  379.     gxResolveBitmapAlias    = 0x00000004    // resolve bitmap aliases and duplicate data in file
  380. };
  381.  
  382.  
  383. enum {                                        // options for gxCloseSpoolFile message
  384.     gxNoCloseOptions    = 0x00000000,        // just close the file
  385.     gxDeleteOnClose    = 0x00000001,        // delete the file rather than closing it
  386.     gxUpdateJobData    = 0x00000002,        // write current job information into file prior to closing
  387.     gxMakeRemoteFile    = 0x00000004        // mark job as a remote file
  388. };
  389.  
  390.  
  391. enum {                                             // options for gxCreateImageFile message
  392.     gxNoImageFile         = 0x00000000,                // don't create image file
  393.     gxMakeImageFile     = 0x00000001,                // create an image file
  394.     gxEachPlane            = 0x00000002,                // only save up planes before rewinding
  395.     gxEachPage            = 0x00000004,                // save up entire pages before rewinding
  396.     gxEntireFile        = gxEachPlane + gxEachPage    // save up the entire file before rewinding
  397. };
  398.  
  399.  
  400. enum {                                        // options for gxBufferData message
  401.     gxNoBufferOptions    = 0x00000000, 
  402.     gxMakeBufferHex        = 0x00000001, 
  403.     gxDontSplitBuffer    = 0x00000002
  404. };
  405.  
  406.  
  407. struct gxPrintingBuffer{                            // for gxDumpBuffer and gxFreeBuffer messages
  408.     long            size;                            //    size of buffer in bytes
  409.     long            userData;                    //    client assigned id for the buffer
  410.     char            data[1];                        // array of size bytes
  411. };
  412.  
  413. typedef struct gxPrintingBuffer gxPrintingBuffer;
  414.  
  415.  
  416. struct gxPageInfoRecord{                            // for gxRenderPage message
  417.     long        docPageNum;                        // number of page being printed
  418.     long        copyNum;                            // copy number being printed
  419.     Boolean    formatChanged;                    // true if format changed from last page
  420.     Boolean    pageChanged;                    // true if page contents changed from last page
  421.     long        internalUse;                    // private
  422. };
  423.  
  424. typedef struct gxPageInfoRecord gxPageInfoRecord;
  425.  
  426.  
  427.  
  428. /* ------------------------------------------------------------------------------
  429.  
  430.                                 Universal Printing Messages
  431.  
  432. -------------------------------------------------------------------------------- */
  433.  
  434.  
  435. #define GXUNIVSENDGLUE(selector) SendMessageGlue(0x0000, selector)
  436. #define GXFORWARDGLUE ForwardThisMessageGlue
  437.  
  438.  
  439. #define Send_GXFetchTaggedDriverData(tag, id, pHandle) Send_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  440. #define Forward_GXFetchTaggedDriverData(tag, id, pHandle) Forward_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  441.  
  442. #pragma procname GXJobIdle
  443. typedef OSErr (*GXJobIdleProcPtr)(void);
  444.  
  445. OSErr Send_GXJobIdle (void)
  446.     = GXUNIVSENDGLUE(gxJobIdle);
  447. OSErr Forward_GXJobIdle (void)
  448.     = GXFORWARDGLUE;
  449.  
  450. #pragma procname GXJobStatus
  451. typedef OSErr (*GXJobStatusProcPtr)(gxStatusRecord *pStatus);
  452.  
  453. OSErr Send_GXJobStatus (gxStatusRecord *pStatus)
  454.     = GXUNIVSENDGLUE(gxJobStatus);
  455. OSErr Forward_GXJobStatus (gxStatusRecord *pStatus)
  456.     = GXFORWARDGLUE;
  457.  
  458. #pragma procname GXPrintingEvent
  459. typedef OSErr (*GXPrintingEventProcPtr)(EventRecord *eventPtr, Boolean filterEvent);
  460.  
  461. OSErr Send_GXPrintingEvent (EventRecord *, Boolean filterEvent)
  462.     = GXUNIVSENDGLUE(gxPrintingEvent);
  463. OSErr Forward_GXPrintingEvent (EventRecord *, Boolean filterEvent)
  464.     = GXFORWARDGLUE;
  465.  
  466.  
  467. #pragma procname GXJobDefaultFormatDialog
  468. typedef OSErr (*GXJobDefaultFormatDialogProcPtr)(gxDialogResult *dlgResult);
  469.  
  470. OSErr Send_GXJobDefaultFormatDialog (gxDialogResult *dlgResult)
  471.     = GXUNIVSENDGLUE(gxJobDefaultFormatDialog);
  472. OSErr Forward_GXJobDefaultFormatDialog (gxDialogResult *dlgResult)
  473.     = GXFORWARDGLUE;
  474.     
  475. #pragma procname GXFormatDialog
  476. typedef OSErr (*GXFormatDialogProcPtr)(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult);
  477.  
  478. OSErr Send_GXFormatDialog (gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  479.     = GXUNIVSENDGLUE(gxFormatDialog);
  480. OSErr Forward_GXFormatDialog (gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  481.     = GXFORWARDGLUE;
  482.     
  483. #pragma procname GXJobPrintDialog
  484. typedef OSErr (*GXJobPrintDialogProcPtr)(gxDialogResult *dlgResult);
  485.  
  486. OSErr Send_GXJobPrintDialog (gxDialogResult *dlgResult)
  487.     = GXUNIVSENDGLUE(gxJobPrintDialog);
  488. OSErr Forward_GXJobPrintDialog (gxDialogResult *dlgResult)
  489.     = GXFORWARDGLUE;
  490.  
  491. #pragma procname GXFilterPanelEvent
  492. typedef OSErr (*GXFilterPanelEventProcPtr)(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed);
  493.  
  494. OSErr Send_GXFilterPanelEvent (gxPanelInfoRecord *pHitInfo, Boolean *returnImmed)
  495.     = GXUNIVSENDGLUE(gxFilterPanelEvent);
  496.  
  497. #pragma procname GXHandlePanelEvent
  498. typedef OSErr (*GXHandlePanelEventProcPtr)(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse);
  499.  
  500. OSErr Send_GXHandlePanelEvent (gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse)
  501.     = GXUNIVSENDGLUE(gxHandlePanelEvent);
  502.  
  503. #pragma procname GXParsePageRange
  504. typedef OSErr (*GXParsePageRangeProcPtr)(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result);
  505.  
  506. OSErr Send_GXParsePageRange (StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  507.     = GXUNIVSENDGLUE(gxParsePageRange);
  508. OSErr Forward_GXParsePageRange (StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  509.     = GXFORWARDGLUE;
  510.     
  511.     
  512. #pragma procname GXDefaultJob
  513. typedef OSErr (*GXDefaultJobProcPtr)(void);
  514.  
  515. OSErr Send_GXDefaultJob (void)
  516.     = GXUNIVSENDGLUE(gxDefaultJob);
  517. OSErr Forward_GXDefaultJob (void)
  518.     = GXFORWARDGLUE;
  519.     
  520. #pragma procname GXDefaultFormat
  521. typedef OSErr (*GXDefaultFormatProcPtr)(gxFormat theFormat);
  522.  
  523. OSErr Send_GXDefaultFormat (gxFormat theFormat)
  524.     = GXUNIVSENDGLUE(gxDefaultFormat);
  525. OSErr Forward_GXDefaultFormat (gxFormat theFormat)
  526.     = GXFORWARDGLUE;
  527.  
  528. #pragma procname GXDefaultPaperType
  529. typedef OSErr (*GXDefaultPaperTypeProcPtr)(gxPaperType thePaperType);
  530.  
  531. OSErr Send_GXDefaultPaperType (gxPaperType thePaperType)
  532.     = GXUNIVSENDGLUE(gxDefaultPaperType);
  533. OSErr Forward_GXDefaultPaperType (gxPaperType thePaperType)
  534.     = GXFORWARDGLUE;
  535.     
  536. #pragma procname GXDefaultPrinter
  537. typedef OSErr (*GXDefaultPrinterProcPtr)(gxPrinter thePrinter);
  538.  
  539. OSErr Send_GXDefaultPrinter (gxPrinter thePrinter)
  540.     = GXUNIVSENDGLUE(gxDefaultPrinter);
  541. OSErr Forward_GXDefaultPrinter (gxPrinter thePrinter)
  542.     = GXFORWARDGLUE;
  543.     
  544.  
  545. #pragma procname GXCreateSpoolFile
  546. typedef OSErr (*GXCreateSpoolFileProcPtr)(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile);
  547.  
  548. OSErr Send_GXCreateSpoolFile (FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  549.     = GXUNIVSENDGLUE(gxCreateSpoolFile);
  550. OSErr Forward_GXCreateSpoolFile (FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  551.     = GXFORWARDGLUE;
  552.     
  553. #pragma procname GXSpoolPage
  554. typedef OSErr (*GXSpoolPageProcPtr)(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage);
  555.  
  556. OSErr Send_GXSpoolPage (gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  557.     = GXUNIVSENDGLUE(gxSpoolPage);
  558. OSErr Forward_GXSpoolPage (gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  559.     = GXFORWARDGLUE;
  560.  
  561. #pragma procname GXSpoolData
  562. typedef OSErr (*GXSpoolDataProcPtr)(gxSpoolFile theSpoolFile, Ptr data, long *length);
  563.  
  564. OSErr Send_GXSpoolData (gxSpoolFile theSpoolFile, Ptr data, long *length)
  565.     = GXUNIVSENDGLUE(gxSpoolData);
  566. OSErr Forward_GXSpoolData (gxSpoolFile theSpoolFile, Ptr data, long *length)
  567.     = GXFORWARDGLUE;
  568.  
  569. #ifdef applec
  570. #pragma procname GXSpoolResource
  571. typedef OSErr (*GXSpoolResourceProcPtr)(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, short id);
  572.  
  573. OSErr Send_GXSpoolResource (gxSpoolFile theSpoolFile, Handle theResource, ResType theType, short id)
  574.     = GXUNIVSENDGLUE(gxSpoolResource);
  575. OSErr Forward_GXSpoolResource (gxSpoolFile theSpoolFile, Handle theResource, ResType theType, short id)
  576.     = GXFORWARDGLUE;
  577. #else
  578. #pragma procname GXSpoolResource
  579. typedef OSErr (*GXSpoolResourceProcPtr)(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id);
  580.  
  581. OSErr Send_GXSpoolResource (gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  582.     = GXUNIVSENDGLUE(gxSpoolResource);
  583. OSErr Forward_GXSpoolResource (gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  584.     = GXFORWARDGLUE;
  585. #endif
  586.  
  587. #pragma procname GXCompleteSpoolFile
  588. typedef OSErr (*GXCompleteSpoolFileProcPtr)(gxSpoolFile theSpoolFile);
  589.  
  590. OSErr Send_GXCompleteSpoolFile (gxSpoolFile theSpoolFile)
  591.     = GXUNIVSENDGLUE(gxCompleteSpoolFile);
  592. OSErr Forward_GXCompleteSpoolFile (gxSpoolFile theSpoolFile)
  593.     = GXFORWARDGLUE;
  594.  
  595.  
  596. #pragma procname GXCountPages
  597. typedef OSErr (*GXCountPagesProcPtr)(gxSpoolFile theSpoolFile, long *numPages);
  598.  
  599. OSErr Send_GXCountPages (gxSpoolFile theSpoolFile, long *numPages)
  600.     = GXUNIVSENDGLUE(gxCountPages);
  601. OSErr Forward_GXCountPages (gxSpoolFile theSpoolFile, long *numPages)
  602.     = GXFORWARDGLUE;
  603.  
  604. #pragma procname GXDespoolPage
  605. typedef OSErr (*GXDespoolPageProcPtr)(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage,  Boolean *formatChanged);
  606.  
  607. OSErr Send_GXDespoolPage (gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage,  Boolean *formatChanged)
  608.     = GXUNIVSENDGLUE(gxDespoolPage);
  609. OSErr Forward_GXDespoolPage (gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage,  Boolean *formatChanged)
  610.     = GXFORWARDGLUE;
  611.  
  612. #pragma procname GXDespoolData
  613. typedef OSErr (*GXDespoolDataProcPtr)(gxSpoolFile theSpoolFile, Ptr data, long *length);
  614.  
  615. OSErr Send_GXDespoolData (gxSpoolFile theSpoolFile, Ptr data, long *length)
  616.     = GXUNIVSENDGLUE(gxDespoolData);
  617. OSErr Forward_GXDespoolData (gxSpoolFile theSpoolFile, Ptr data, long *length)
  618.     = GXFORWARDGLUE;
  619.  
  620. #ifdef applec
  621. #pragma procname GXDespoolResource
  622. typedef OSErr (*GXDespoolResourceProcPtr)(gxSpoolFile theSpoolFile, ResType theType, short id, Handle *theResource);
  623.  
  624. OSErr Send_GXDespoolResource (gxSpoolFile theSpoolFile, ResType theType, short id, Handle *theResource)
  625.     = GXUNIVSENDGLUE(gxDespoolResource);
  626. OSErr Forward_GXDespoolResource (gxSpoolFile theSpoolFile, ResType theType, short id, Handle *theResource)
  627.     = GXFORWARDGLUE;
  628. #else
  629. #pragma procname GXDespoolResource
  630. typedef OSErr (*GXDespoolResourceProcPtr)(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource);
  631.  
  632. OSErr Send_GXDespoolResource (gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  633.     = GXUNIVSENDGLUE(gxDespoolResource);
  634. OSErr Forward_GXDespoolResource (gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  635.     = GXFORWARDGLUE;
  636. #endif
  637.  
  638. #pragma procname GXCloseSpoolFile
  639. typedef OSErr (*GXCloseSpoolFileProcPtr)(gxSpoolFile theSpoolFile, long closeOptions);
  640.  
  641. OSErr Send_GXCloseSpoolFile (gxSpoolFile theSpoolFile, long closeOptions)
  642.     = GXUNIVSENDGLUE(gxCloseSpoolFile);
  643. OSErr Forward_GXCloseSpoolFile (gxSpoolFile theSpoolFile, long closeOptions)
  644.     = GXFORWARDGLUE;
  645.     
  646.     
  647. #pragma procname GXStartJob
  648. typedef OSErr (*GXStartJobProcPtr)(StringPtr docName, long pageCount);
  649.  
  650. OSErr Send_GXStartJob (StringPtr docName, long pageCount)
  651.     = GXUNIVSENDGLUE(gxStartJob);
  652. OSErr Forward_GXStartJob (StringPtr docName, long pageCount)
  653.     = GXFORWARDGLUE;
  654.     
  655. #pragma procname GXFinishJob
  656. typedef OSErr (*GXFinishJobProcPtr)(void);
  657.  
  658. OSErr Send_GXFinishJob (void)
  659.     = GXUNIVSENDGLUE(gxFinishJob);
  660. OSErr Forward_GXFinishJob (void)
  661.     = GXFORWARDGLUE;
  662.     
  663. #pragma procname GXStartPage
  664. typedef OSErr (*GXStartPageProcPtr)(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList);
  665.  
  666. OSErr Send_GXStartPage (gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  667.     = GXUNIVSENDGLUE(gxStartPage);
  668. OSErr Forward_GXStartPage (gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  669.     = GXFORWARDGLUE;
  670.  
  671. #pragma procname GXFinishPage
  672. typedef OSErr (*GXFinishPageProcPtr)(void);
  673.  
  674. OSErr Send_GXFinishPage (void)
  675.     = GXUNIVSENDGLUE(gxFinishPage);
  676. OSErr Forward_GXFinishPage (void)
  677.     = GXFORWARDGLUE;
  678.     
  679. #pragma procname GXPrintPage
  680. typedef OSErr (*GXPrintPageProcPtr)(gxFormat theFormat, gxShape thePage);
  681.  
  682. OSErr Send_GXPrintPage (gxFormat theFormat, gxShape thePage)
  683.     = GXUNIVSENDGLUE(gxPrintPage);
  684. OSErr Forward_GXPrintPage (gxFormat theFormat, gxShape thePage)
  685.     = GXFORWARDGLUE;
  686.     
  687.  
  688. #pragma procname GXSetupImageData
  689. typedef OSErr (*GXSetupImageDataProcPtr)(void *imageData);
  690.  
  691. OSErr Send_GXSetupImageData (void *imageData)
  692.     = GXUNIVSENDGLUE(gxSetupImageData);
  693. OSErr Forward_GXSetupImageData (void *imageData)
  694.     = GXFORWARDGLUE;
  695.  
  696. #pragma procname GXImageJob
  697. typedef OSErr (*GXImageJobProcPtr)(gxSpoolFile, long *closeOptions);
  698.  
  699. OSErr Send_GXImageJob(gxSpoolFile, long *closeOptions)
  700.     = GXUNIVSENDGLUE(gxImageJob);
  701. OSErr Forward_GXImageJob (gxSpoolFile, long *closeOptions)
  702.     = GXFORWARDGLUE;
  703.  
  704. #pragma procname GXImageDocument
  705. typedef OSErr (*GXImageDocumentProcPtr)(gxSpoolFile theSpoolFile, void *imageData);
  706.  
  707. OSErr Send_GXImageDocument (gxSpoolFile theSpoolFile, void *imageData)
  708.     = GXUNIVSENDGLUE(gxImageDocument);
  709. OSErr Forward_GXImageDocument (gxSpoolFile theSpoolFile, void *imageData)
  710.     = GXFORWARDGLUE;
  711.  
  712. #pragma procname GXImagePage
  713. typedef OSErr (*GXImagePageProcPtr)(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData);
  714.  
  715. OSErr Send_GXImagePage (gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  716.     = GXUNIVSENDGLUE(gxImagePage);
  717. OSErr Forward_GXImagePage (gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  718.     = GXFORWARDGLUE;
  719.  
  720. #pragma procname GXRenderPage
  721. typedef OSErr (*GXRenderPageProcPtr)(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *, void *imageData);
  722.  
  723. OSErr Send_GXRenderPage (gxFormat theFormat, gxShape thePage, gxPageInfoRecord *, void *imageData)
  724.     = GXUNIVSENDGLUE(gxRenderPage);
  725. OSErr Forward_GXRenderPage (gxFormat theFormat, gxShape thePage, gxPageInfoRecord *, void *imageData)
  726.     = GXFORWARDGLUE;
  727.  
  728.  
  729. #pragma procname GXCreateImageFile
  730. typedef OSErr (*GXCreateImageFileProcPtr)(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile);
  731.  
  732. OSErr Send_GXCreateImageFile (FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  733.     = GXUNIVSENDGLUE(gxCreateImageFile);
  734. OSErr Forward_GXCreateImageFile (FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  735.     = GXFORWARDGLUE;
  736.  
  737.  
  738. #pragma procname GXOpenConnection
  739. typedef OSErr (*GXOpenConnectionProcPtr)(void);
  740.  
  741. OSErr Send_GXOpenConnection (void)
  742.     = GXUNIVSENDGLUE(gxOpenConnection);
  743. OSErr Forward_GXOpenConnection (void)
  744.     = GXFORWARDGLUE;
  745.  
  746. #pragma procname GXCloseConnection
  747. typedef OSErr (*GXCloseConnectionProcPtr)(void);
  748.  
  749. OSErr Send_GXCloseConnection (void)
  750.     = GXUNIVSENDGLUE(gxCloseConnection);
  751. OSErr Forward_GXCloseConnection (void)
  752.     = GXFORWARDGLUE;
  753.  
  754. #pragma procname GXStartSendPage
  755. typedef OSErr (*GXStartSendPageProcPtr)(gxFormat theFormat);
  756.  
  757. OSErr Send_GXStartSendPage (gxFormat theFormat)
  758.     = GXUNIVSENDGLUE(gxStartSendPage);
  759. OSErr Forward_GXStartSendPage (gxFormat theFormat)
  760.     = GXFORWARDGLUE;
  761.  
  762. #pragma procname GXFinishSendPage
  763. typedef OSErr (*GXFinishSendPageProcPtr)(void);
  764.  
  765. OSErr Send_GXFinishSendPage (void)
  766.     = GXUNIVSENDGLUE(gxFinishSendPage);
  767. OSErr Forward_GXFinishSendPage (void)
  768.     = GXFORWARDGLUE;
  769.  
  770.  
  771. #pragma procname GXWriteData
  772. typedef OSErr (*GXWriteDataProcPtr)(Ptr data, long length);
  773.  
  774. OSErr Send_GXWriteData (Ptr data, long length)
  775.     = GXUNIVSENDGLUE(gxWriteData);
  776. OSErr Forward_GXWriteData (Ptr data, long length)
  777.     = GXFORWARDGLUE;
  778.  
  779. #pragma procname GXBufferData
  780. typedef OSErr (*GXBufferDataProcPtr)(Ptr data, long length, long bufferOptions);
  781.  
  782. OSErr Send_GXBufferData (Ptr data, long length, long bufferOptions)
  783.     = GXUNIVSENDGLUE(gxBufferData);
  784. OSErr Forward_GXBufferData (Ptr data, long length, long bufferOptions)
  785.     = GXFORWARDGLUE;
  786.  
  787. #pragma procname GXDumpBuffer
  788. typedef OSErr (*GXDumpBufferProcPtr)(gxPrintingBuffer *theBuffer);
  789.  
  790. OSErr Send_GXDumpBuffer (gxPrintingBuffer *theBuffer)
  791.     = GXUNIVSENDGLUE(gxDumpBuffer);
  792. OSErr Forward_GXDumpBuffer (gxPrintingBuffer *theBuffer)
  793.     = GXFORWARDGLUE;
  794.  
  795. #pragma procname GXFreeBuffer
  796. typedef OSErr (*GXFreeBufferProcPtr)(gxPrintingBuffer *theBuffer);
  797.  
  798. OSErr Send_GXFreeBuffer (gxPrintingBuffer *theBuffer)
  799.     = GXUNIVSENDGLUE(gxFreeBuffer);
  800. OSErr Forward_GXFreeBuffer (gxPrintingBuffer *theBuffer)
  801.     = GXFORWARDGLUE;
  802.  
  803.  
  804. #ifdef applec
  805. #pragma procname GXCheckStatus
  806. typedef OSErr (*GXCheckStatusProcPtr)(Ptr data, long length, short statusType, Signature owner);
  807.  
  808. OSErr Send_GXCheckStatus (Ptr data, long length, short statusType, Signature owner)
  809.     = GXUNIVSENDGLUE(gxCheckStatus);
  810. OSErr Forward_GXCheckStatus (Ptr data, long length, short statusType, Signature owner)
  811.     = GXFORWARDGLUE;
  812. #else
  813. #pragma procname GXCheckStatus
  814. typedef OSErr (*GXCheckStatusProcPtr)(Ptr data, long length, long statusType, Signature owner);
  815.  
  816. OSErr Send_GXCheckStatus (Ptr data, long length, long statusType, Signature owner)
  817.     = GXUNIVSENDGLUE(gxCheckStatus);
  818. OSErr Forward_GXCheckStatus (Ptr data, long length, long statusType, Signature owner)
  819.     = GXFORWARDGLUE;
  820. #endif
  821.  
  822. #pragma procname GXGetDeviceStatus
  823. typedef OSErr (*GXGetDeviceStatusProcPtr)(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination);
  824.  
  825. OSErr Send_GXGetDeviceStatus (Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  826.     = GXUNIVSENDGLUE(gxGetDeviceStatus);
  827. OSErr Forward_GXGetDeviceStatus (Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  828.     = GXFORWARDGLUE;
  829.  
  830.  
  831. #ifdef applec
  832. #pragma procname GXFetchTaggedData
  833. typedef OSErr (*GXFetchTaggedDataProcPtr)(ResType theType, short id, Handle *, Signature owner);
  834.  
  835. OSErr Send_GXFetchTaggedData (ResType theType, short id, Handle *, Signature owner)
  836.     = GXUNIVSENDGLUE(gxFetchTaggedData);
  837. OSErr Forward_GXFetchTaggedData (ResType theType, short id, Handle *, Signature owner)
  838.     = GXFORWARDGLUE;
  839. #else
  840. #pragma procname GXFetchTaggedData
  841. typedef OSErr (*GXFetchTaggedDataProcPtr)(ResType theType, long id, Handle *, Signature owner);
  842.  
  843. OSErr Send_GXFetchTaggedData (ResType theType, long id, Handle *, Signature owner)
  844.     = GXUNIVSENDGLUE(gxFetchTaggedData);
  845. OSErr Forward_GXFetchTaggedData (ResType theType, long id, Handle *, Signature owner)
  846.     = GXFORWARDGLUE;
  847. #endif
  848.  
  849.  
  850. #pragma procname GXGetDTPMenuList
  851. typedef OSErr (*GXGetDTPMenuListProcPtr)(MenuHandle menuHdl);
  852.  
  853. OSErr    Send_GXGetDTPMenuList (MenuHandle menuHdl)
  854.     = GXUNIVSENDGLUE(gxGetDTPMenuList);
  855. OSErr    Forward_GXGetDTPMenuList (MenuHandle menuHdl)
  856.     = GXFORWARDGLUE;
  857.  
  858. #ifdef applec
  859. #pragma procname GXDTPMenuSelect
  860. typedef OSErr (*GXDTPMenuSelectProcPtr)(short id);
  861.  
  862. OSErr    Send_GXDTPMenuSelect (short id)
  863.     = GXUNIVSENDGLUE(gxDTPMenuSelect);
  864. OSErr    Forward_GXDTPMenuSelect (short id)
  865.     = GXFORWARDGLUE;
  866. #else
  867. #pragma procname GXDTPMenuSelect
  868. typedef OSErr (*GXDTPMenuSelectProcPtr)(long id);
  869.  
  870. OSErr    Send_GXDTPMenuSelect (long id)
  871.     = GXUNIVSENDGLUE(gxDTPMenuSelect);
  872. OSErr    Forward_GXDTPMenuSelect (long id)
  873.     = GXFORWARDGLUE;
  874. #endif
  875.  
  876. #pragma procname GXHandleAlertFilter
  877. typedef OSErr (*GXHandleAlertFilterProcPtr)(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed);
  878.  
  879. OSErr    Send_GXHandleAlertFilter (gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  880.     = GXUNIVSENDGLUE(gxHandleAlertFilter);
  881. OSErr    Forward_GXHandleAlertFilter (gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  882.     = GXFORWARDGLUE;
  883.     
  884.  
  885. #pragma procname GXJobFormatModeQuery
  886. typedef OSErr (*GXJobFormatModeQueryProcPtr)(gxQueryType theQuery, void *srcData, void *dstData);
  887.  
  888. OSErr Send_GXJobFormatModeQuery (gxQueryType theQuery, void *srcData, void *dstData)
  889.     = GXUNIVSENDGLUE(gxJobFormatModeQuery);
  890. OSErr Forward_GXJobFormatModeQuery (gxQueryType theQuery, void *srcData, void *dstData)
  891.     = GXFORWARDGLUE;
  892.  
  893.  
  894. #pragma procname GXWriteStatusToDTPWindow
  895. typedef OSErr (*GXWriteStatusToDTPWindowProcPtr)(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay);
  896.  
  897. OSErr Send_GXWriteStatusToDTPWindow (gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  898.     = GXUNIVSENDGLUE(gxWriteStatusToDTPWindow);
  899. OSErr Forward_GXWriteStatusToDTPWindow (gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  900.     = GXFORWARDGLUE;
  901.  
  902. #pragma procname GXInitializeStatusAlert
  903. typedef OSErr (*GXInitializeStatusAlertProcPtr)(gxStatusRecord *pStatusRec, DialogPtr *pDialog);
  904.  
  905. OSErr Send_GXInitializeStatusAlert (gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  906.     = GXUNIVSENDGLUE(gxInitializeStatusAlert);
  907. OSErr Forward_GXInitializeStatusAlert (gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  908.     = GXFORWARDGLUE;
  909.  
  910. #pragma procname GXHandleAlertStatus
  911. typedef OSErr (*GXHandleAlertStatusProcPtr)(gxStatusRecord *pStatusRec);
  912.  
  913. OSErr Send_GXHandleAlertStatus (gxStatusRecord *pStatusRec)
  914.     = GXUNIVSENDGLUE(gxHandleAlertStatus);
  915. OSErr Forward_GXHandleAlertStatus (gxStatusRecord *pStatusRec)
  916.     = GXFORWARDGLUE;
  917.     
  918. #pragma procname GXHandleAlertEvent
  919. typedef OSErr (*GXHandleAlertEventProcPtr)(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response);
  920.  
  921. OSErr Send_GXHandleAlertEvent (gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  922.     = GXUNIVSENDGLUE(gxHandleAlertEvent);
  923. OSErr Forward_GXHandleAlertEvent (gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  924.     = GXFORWARDGLUE;
  925.         
  926.  
  927. #pragma procname GXCleanupStartJob
  928. typedef void (*GXCleanupStartJobProcPtr)(void);
  929.  
  930. void Send_GXCleanupStartJob (void)
  931.     = GXUNIVSENDGLUE(gxCleanupStartJob);
  932. void Forward_GXCleanupStartJob (void)
  933.     = GXFORWARDGLUE;
  934.  
  935. #pragma procname GXCleanupStartPage
  936. typedef void (*GXCleanupStartPageProcPtr)(void);
  937.  
  938. void Send_GXCleanupStartPage (void)
  939.     = GXUNIVSENDGLUE(gxCleanupStartPage);
  940. void Forward_GXCleanupStartPage (void)
  941.     = GXFORWARDGLUE;
  942.  
  943. #pragma procname GXCleanupOpenConnection
  944. typedef void (*GXCleanupOpenConnectionProcPtr)(void);
  945.  
  946. void Send_GXCleanupOpenConnection (void)
  947.     = GXUNIVSENDGLUE(gxCleanupOpenConnection);
  948. void Forward_GXCleanupOpenConnection (void)
  949.     = GXFORWARDGLUE;
  950.  
  951. #pragma procname GXCleanupStartSendPage
  952. typedef void (*GXCleanupStartSendPageProcPtr)(void);
  953.  
  954. void Send_GXCleanupStartSendPage (void)
  955.     = GXUNIVSENDGLUE(gxCleanupStartSendPage);
  956. void Forward_GXCleanupStartSendPage (void)
  957.     = GXFORWARDGLUE;
  958.  
  959.  
  960. #pragma procname GXDefaultDesktopPrinter
  961. typedef OSErr (*GXDefaultDesktopPrinterProcPtr)(Str31);
  962.  
  963. OSErr Send_GXDefaultDesktopPrinter (Str31 dtpName)
  964.     = GXUNIVSENDGLUE(gxDefaultDesktopPrinter);
  965. OSErr Forward_GXDefaultDesktopPrinter (Str31 dtpName)
  966.     = GXFORWARDGLUE;
  967.     
  968. #pragma procname GXCaptureOutputDevice
  969. typedef OSErr (*GXCaptureOutputDeviceProcPtr)(Boolean capture);
  970.  
  971. OSErr    Send_GXCaptureOutputDevice (Boolean capture)
  972.     = GXUNIVSENDGLUE(gxCaptureOutputDevice);
  973. OSErr    Forward_GXCaptureOutputDevice (Boolean capture)
  974.     = GXFORWARDGLUE;
  975.  
  976.  
  977. #pragma procname GXOpenConnectionRetry
  978. typedef OSErr (*GXOpenConnectionRetryProcPtr)(ResType theType, void *, Boolean *retryopenPtr, OSErr anErr);
  979.  
  980. OSErr Send_GXOpenConnectionRetry (ResType theType, void *, Boolean *retryopenPtr, OSErr anErr)
  981.     = GXUNIVSENDGLUE(gxOpenConnectionRetry);
  982. OSErr Forward_GXOpenConnectionRetry (ResType theType, void *, Boolean *retryopenPtr, OSErr anErr)
  983.     = GXFORWARDGLUE;
  984.     
  985. #pragma procname GXExamineSpoolFile
  986. typedef OSErr (*GXExamineSpoolFileProcPtr)(gxSpoolFile theSpoolFile);
  987.  
  988. OSErr Send_GXExamineSpoolFile (gxSpoolFile theSpoolFile)
  989.     = GXUNIVSENDGLUE(gxExamineSpoolFile);
  990. OSErr Forward_GXExamineSpoolFile (gxSpoolFile theSpoolFile)
  991.     = GXFORWARDGLUE;
  992.  
  993. #pragma procname GXFinishSendPlane
  994. typedef OSErr (*GXFinishSendPlaneProcPtr)(void);
  995.  
  996. OSErr Send_GXFinishSendPlane (void)
  997.     = GXUNIVSENDGLUE(gxFinishSendPlane);
  998. OSErr Forward_GXFinishSendPlane (void)
  999.     = GXFORWARDGLUE;
  1000.  
  1001. #pragma procname GXDoesPaperFit
  1002. typedef OSErr (*GXDoesPaperFitProcPtr)( gxTrayIndex whichTray, gxPaperType paper, Boolean *fits );
  1003.  
  1004. OSErr Send_GXDoesPaperFit( gxTrayIndex whichTray, gxPaperType paper, Boolean *fits )
  1005.     = GXUNIVSENDGLUE(gxDoesPaperFit);
  1006. OSErr Forward_GXDoesPaperFit( gxTrayIndex whichTray, gxPaperType paper, Boolean *fits )
  1007.     = GXFORWARDGLUE;
  1008.     
  1009. #ifdef applec
  1010. #pragma procname GXChooserMessage
  1011. typedef OSErr (*GXChooserMessageProcPtr)(short message, short caller, StringPtr objName,
  1012.                                     StringPtr zoneName, ListHandle theList, long p2);
  1013.  
  1014. OSErr Send_GXChooserMessage (short message, short caller, StringPtr objName,
  1015.                                     StringPtr zoneName, ListHandle theList, long p2)
  1016.     = GXUNIVSENDGLUE(gxChooserMessage);
  1017. OSErr Forward_GXChooserMessage (short message, short caller, StringPtr objName,
  1018.                                         StringPtr zoneName, ListHandle theList, long p2)
  1019.     = GXFORWARDGLUE;
  1020. #else
  1021. #pragma procname GXChooserMessage
  1022. typedef OSErr (*GXChooserMessageProcPtr)(long message, long caller, StringPtr objName,
  1023.                                     StringPtr zoneName, ListHandle theList, long p2);
  1024.  
  1025. OSErr Send_GXChooserMessage (long message, long caller, StringPtr objName,
  1026.                                     StringPtr zoneName, ListHandle theList, long p2)
  1027.     = GXUNIVSENDGLUE(gxChooserMessage);
  1028. OSErr Forward_GXChooserMessage (long message, long caller, StringPtr objName,
  1029.                                         StringPtr zoneName, ListHandle theList, long p2)
  1030.     = GXFORWARDGLUE;
  1031. #endif
  1032.  
  1033.  
  1034. #pragma procname GXFindPrinterProfile
  1035. typedef OSErr (*GXFindPrinterProfileProcPtr)(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  1036.  
  1037. OSErr Send_GXFindPrinterProfile (gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  1038.     = GXUNIVSENDGLUE(gxFindPrinterProfile);
  1039. OSErr Forward_GXFindPrinterProfile (gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  1040.     = GXFORWARDGLUE;
  1041.     
  1042. #pragma procname GXFindFormatProfile
  1043. typedef OSErr (*GXFindFormatProfileProcPtr)(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  1044.  
  1045. OSErr Send_GXFindFormatProfile (gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  1046.     = GXUNIVSENDGLUE(gxFindFormatProfile);
  1047. OSErr Forward_GXFindFormatProfile (gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  1048.     = GXFORWARDGLUE;
  1049.     
  1050. #pragma procname GXSetPrinterProfile
  1051. typedef OSErr (*GXSetPrinterProfileProcPtr)(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile);
  1052.  
  1053. OSErr Send_GXSetPrinterProfile (gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  1054.     = GXUNIVSENDGLUE(gxSetPrinterProfile);
  1055. OSErr Forward_GXSetPrinterProfile (gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  1056.     = GXFORWARDGLUE;
  1057.  
  1058. #pragma procname GXSetFormatProfile
  1059. typedef OSErr (*GXSetFormatProfileProcPtr)(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile);
  1060.  
  1061. OSErr Send_GXSetFormatProfile (gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  1062.     = GXUNIVSENDGLUE(gxSetFormatProfile);
  1063. OSErr Forward_GXSetFormatProfile (gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  1064.     = GXFORWARDGLUE;
  1065.  
  1066. #ifdef __cplusplus
  1067. }
  1068. #endif
  1069.  
  1070.  
  1071. #endif
  1072.